import Vue from "vue";
import Router from "vue-router";
const index = () =>
	import("@/pages/index"); // 登录usercenter
const lawerPage = () =>
	import("@/pages/lawerPage.vue"); //律师列表
const lawerDetail = () =>
	import("@/pages/lawerDetail.vue"); //律师列表详情
const detail = () =>
    import ("@/pages/detail.vue"); //案例详情
const share = () =>
    import ("@/pages/share.vue"); //案例详情
const litigationService = () =>
    import ("@/pages/litigationService.vue"); //案例详情

Vue.use(Router)

const router = new Router({
	routes: [{
			path: '/',
			name: 'index',
			redirect: '/index',
			meta: {
				title: '首页',
			}
		}, {
			path: "/index",
			name: "index",
			meta: {
				title: '首页',
			},
			component: index
		},
		{
			path: "/lawerPage",
			name: "lawerPage",
			meta: {
				title: '律师列表',
			},
			component: lawerPage
		},
		{
			path: "/lawerDetail",
			name: "lawerDetail",
			meta: {
				title: '律师列表详情',
			},
			component: lawerDetail
		},
		{
			path: "/detail",
			name: "detail",
			meta: {
				title: '案例详情',
			},
			component: detail
		},
		{
			path: "/share",
			name: "share",
			meta: {
				title: '案例详情',
			},
			component: share
		},
		{
			path: "/litigationService",
			name: "litigationService",
			meta: {
				title: '诉讼服务',
			},
			component: litigationService
		}
	]
});
export default router
